#include <iostream>
#include "shm.h"

using namespace std;

int main()
{
	write_shm writer;
	if(writer.init() != 0){
		cout <<"write init error" << endl;
		return -1;
	}
	cout <<"writer init success" << endl;
	writer.status();
	//writer.write_status(18);
	char *msg = "test for write string";
	writer.write_info(0, msg, strlen(msg));
	
	sleep(30);
	writer.release();

	return 0;
}

